package org.ysh.service;

import org.springframework.stereotype.Service;
import org.ysh.domain.Role;
import org.ysh.mapper.BaseMapper;

@Service
public class RoleService extends BaseService<Integer, Role>{

    public RoleService(BaseMapper<Integer, Role> baseMapper) {
        super(baseMapper);
    }

    public void delete(Integer[] ids) {
        for (Integer id : ids) {
           baseMapper.delete(new Role(id));
        }
    }


}
